package com.hnevc.multi;

public class Test {

	public static void main(String[] args) {
		Animal an1 = new Dog();
		Animal an2 = new Cat();
		
		
		animalShout(an1);
		animalShout(an2);
		
		
	}
	public static void animalShout(Animal an) {
		an.shout();
	}

}
